﻿using Admin.Core.Common.BaseModel;
using Admin.Core.Model.Admin;
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace Admin.Core.Model.Warehouse
{
    //物料
    [Table(Name = "WH_XBC_MATERRIAL")]
    public class XbcMaterrialEntity : EntityAdd, IEntitySoftDelete
    {

        /// <summary>
        /// 物料号
        /// </summary>
        [Column(Name = "CODE")]
        public string Code { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        [Column(Name = "NAME")]
        public string Name { get; set; }



        /// <summary>
        /// 物料规格
        /// </summary>
        [Column(Name = "WLGG")]
        public string Wlgg { get; set; }

        /// <summary>
        /// 生命周期
        /// </summary>
        [Column(Name = "LIFETIME")]//
        public long LifeTime { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [Description("是否删除")]
        [Column(Name = "ISDELETED")]//
        public bool IsDeleted { get; set; } = false;

        /// <summary>
        /// 备注
        /// </summary>
        [Column(Name = "REMARK")]//
        public string Remark { get; set; }


        /// <summary>
        /// 库位Id
        /// </summary>
        [Column(Name = "XBCLOCATIONID")]
        public long XbcLocationId { get; set; }
        public XbcLocationEntity XbcLocation { get; set; }






        /// <summary>
        /// 物料分类Id
        /// </summary>
        [Column(Name = "XBCTYPEID")]
        public long XbcTypeId { get; set; }
        public XbcType XbcType { get; set; }


        /// <summary>
        /// 客户代码id
        /// </summary>
        [Column(Name = "KHDMID")]
        public long? KhdmId { get; set; }
        public DictionaryEntity Khdm { get; set; }


        /// <summary>
        /// 库存单位
        /// </summary>
        [Column(Name = "CKDWID")]
        public long? CkdwId { get; set; }
        public DictionaryEntity Ckdw { get; set; }

        /// <summary>
        /// 最小发放数量id
        /// </summary>
        [Column(Name = "ZXFFSLID")]
        public long? ZxffslId { get; set; }
        public DictionaryEntity Zxffsl { get; set; }
        /// <summary>
        /// 最小发放单位id
        /// </summary>
        [Column(Name = "ZXFFDWID")]
        public long? ZxffdwId { get; set; }
        public DictionaryEntity Zxffdw { get; set; }

        /// <summary>
        /// 启用
        /// </summary>
        [Column(Name = "ENABLED")]
        public bool Enabled { get; set; } = true;



    }
}
